<!-- Oceny czastkowe -->
<script type="text/javascript">
{literal}
function toggleStatus(obj, urlValue) {
	$(obj).attr('disabled', 'disabled');
	$.ajax({
		url: urlValue ,
		type:'GET',
		success: function(){
			$(obj).removeAttr('disabled');
		}
	});
}
{/literal}
</script>
<h1>Oceny cząstkowe kategorii:  </h1>		
{assign var=mainTitle value="`$arrData.category` -> `$arrData.subCategory`"}

{mainoptions title=$mainTitle}
<table cellspacing="0" cellpadding="0" border="0">
	<tr>
		<th>Lp.</th>
		<th>Nazwa</th>
<!--		<th>Publikuj</th>-->
		<th class="noSort">
			<a href="{url Category=VoteEdit id=$arrData.id}" class="add">Dodaj</a><div class="sort"><a class="ascendingAct" href="#">&nbsp;</a><a class="descending" href="#">&nbsp;</a>

		</th>
	</tr>
	
	{foreach from=$list item=obj}
	<tr>
		<td>{tables type='lp' tid='vote_table' iteration=$smarty.foreach.list.iteration}<br />[{$obj->getId()}]</td>
		<td>{$obj->getName()}</td>
<!--		<td>
		</td>		-->
		<td>	
			<a href="{url Category=VoteEdit id=$arrData.id vid=$obj->getId()}" class="edit">edytuj</a>

			<a onclick="if(!confirm('Czy na pewno chcesz usunąć ten element?'))return false;" href="{url Category=VoteDelete id=$obj->getId()}" class="delete">usuń</a>
		</td>
	</tr>
	{/foreach}

</table>

{/mainoptions}
